<!DOCTYPE html>
<html>
    <head>
        <title>AGM商品校验</title>
        <link rel="stylesheet" href="/static/weui.min.css">
        <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
        <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <style>
            .page, body{background-color: #fbf9fe}
            .page_title{color:#225fba}
            .hd{text-align:center}  
            #fwscan{float:right;}
            .weui_label{width:4em;}            
        </style>
    </head>
    <body>
        
        <div class="hd">
            <h2 class="page_title">商品检验图片上传</h1> 
        </div>
        <div class="bd">
            <form id="uploadform">
                <div class="weui_cells_title">选择统一产品型号</div>
                <div class="weui_cells">
                    <div class="weui_cell weui_cell_select weui_select_after">
                        <div class="weui_cell_hd">
                            产品型号
                        </div>
                        <div class="weui_cell_bd weui_cell_primary">
                            <select class="weui_select" id="pname">
                                {% for pname in pnames %}
                                <option value="{{ pname }}">{{ pname }}</option>
                                {% endfor %}
                            </select>
                        </div>
                    </div>
                </div>
                <div class="weui_cells_title">产品防伪码<button id="fwscan" class="weui_btn weui_btn_mini weui_btn_default weui_btn_disabled">扫码修改</button></div>
                <div class="weui_cells weui_cells_form">
                    <div class="weui_cell">
                        <div class="weui_cell_hd"><label class="weui_label">防伪码</label></div>
                        <div class="weui_cell_bd weui_cell_primary">
                            <input name="fwcode" class="weui_input" placeholder="请输入产品的防伪码" style="color:#c9c9c9;" disabled>
                        </div>
                    </div>
                </div>                
                <div class="weui_cells weui_cells_form">
                    <div class="weui_cell">
                        <div class="weui_cell_bd weui_cell_primary">
                            <div class="weui_uploader">
                                <div class="weui_uploader_hd weui_cell">
                                    <div class="weui_cell_bd weui_cell_primary">图片上传</div>
                                    <div class="weui_cell_ft">0/0</div>
                                </div>
                                <div class="weui_uploader_bd">
                                    <ul class="weui_uploader_files"></ul>
                                    <div class="weui_uploader_input_wrp">
                                        <input class="weui_uploader_input" id="uploadimages" type="file" accept="image/jpg,image/jpeg,image/png,image/gif" multiple="">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="weui_btn_area">
                    <button class="weui_btn weui_btn_primary" id="uploadbtn" type="submit">上传</button>
                </div>
            </form>
        </div>
        <div class="weui_dialog_confirm" id="dialog1" style="display:none">
            <div class="weui_mask"></div>
            <div class="weui_dialog">
                <div class="weui_dialog_hd"><strong class="weui_dialog_title">弹窗标题</strong></div>
                <div class="weui_dialog_bd">自定义弹窗内容，居左对齐显示，告知需要确认的信息等</div>
                <div class="weui_dialog_ft">
                    <a class="weui_btn_dialog default">取消</a>
                    <a class="weui_btn_dialog primary">确定</a>
                </div>
            </div>
        </div>        
        <div class="weui_dialog_alert" id="dialog2" style="display:none">
            <div class="weui_mask"></div>
            <div class="weui_dialog">
                <div class="weui_dialog_hd"><strong class="weui_dialog_title">弹窗标题</strong></div>
                <div class="weui_dialog_bd">弹窗内容，告知当前页面信息等</div>
                <div class="weui_dialog_ft">
                    <a class="weui_btn_dialog primary">确定</a>
                </div>
            </div>
        </div>
        <div id="loadingToast" class="weui_loading_toast" style="display:none;">
            <div class="weui_mask_transparent"></div>
            <div class="weui_toast">
                <div class="weui_loading">
                    <!-- :) -->
                    <div class="weui_loading_leaf weui_loading_leaf_0"></div>
                    <div class="weui_loading_leaf weui_loading_leaf_1"></div>
                    <div class="weui_loading_leaf weui_loading_leaf_2"></div>
                    <div class="weui_loading_leaf weui_loading_leaf_3"></div>
                    <div class="weui_loading_leaf weui_loading_leaf_4"></div>
                    <div class="weui_loading_leaf weui_loading_leaf_5"></div>
                    <div class="weui_loading_leaf weui_loading_leaf_6"></div>
                    <div class="weui_loading_leaf weui_loading_leaf_7"></div>
                    <div class="weui_loading_leaf weui_loading_leaf_8"></div>
                    <div class="weui_loading_leaf weui_loading_leaf_9"></div>
                    <div class="weui_loading_leaf weui_loading_leaf_10"></div>
                    <div class="weui_loading_leaf weui_loading_leaf_11"></div>
                </div>
                <p class="weui_toast_content">数据加载中</p>
            </div>
        </div>
        <div class="weui_msg" style="display:none;">
            <div class="weui_icon_area"><i class="weui_icon_success weui_icon_msg"></i></div>
            <div class="weui_text_area">
                <h2 class="weui_msg_title">操作成功</h2>
                <p class="weui_msg_desc">内容详情，可根据实际需要安排</p>
            </div>
            <div class="weui_opr_area">
                <p class="weui_btn_area">
                    <a href="javascript:;" class="weui_btn weui_btn_primary">确定</a>
                    <a href="javascript:;" class="weui_btn weui_btn_default">取消</a>
                </p>
            </div>
            <div class="weui_extra_area">
                <a href="">查看详情</a>
            </div>
        </div> 
        {% if g.sign %}<div class="wx_data" style="display:none" hidden>
            {% for k in g.sign %}<input name="{{k}}" value="{{g.sign[k]}}"/>{% endfor %}
        </div>{% endif %}             
    </body>    
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    {% assets filters="jsmin", output="js/agm_sell_verify_packed.js", 
            "js/agm_sell_verify.js" %}<script src="{{ASSET_URL}}"></script>{% endassets %} 
<html>